local zhiheng_active = fk.CreateSkill{
  name = "lingling__zhiheng_active",
}

Fk:loadTranslationTable{
  ["lingling__zhiheng_active"] = "制衡",
}

zhiheng_active:addEffect("active", {
  card_num = 2,
  target_num = 0,
  card_filter = function(self, player, to_select, selected)
    if not player:prohibitDiscard(to_select) and Fk:getCardById(to_select).color ~= Card.NoColor then
      if #selected == 0 then
        return true
      else
        return Fk:getCardById(to_select):compareColorWith(Fk:getCardById(selected[1]), true)
      end
    end
  end,
})

return zhiheng_active
